package com.fosu.dao;


import com.fosu.domain.Carousel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * Desription
 *
 * @author manno
 * @date 2020/10/14
 */
@Mapper
@Repository

public interface CarouselDao
{
    /**获取所有轮播图
     * @return List<Carousel> 轮播图对象集合
     * */
    @Select("select * from carousel")
    @Results(id="carouselMap",value = {
            @Result(property = "imgUrl", column = "img_url"),})
    List<Carousel> getCarousels();
}
